-- GENERATED SPELL FOR [Fenstalker] --


function spell0_24245(pUnit, Event) --@Volatile Infection,n/a--
pUnit:FullCastSpellOnTarget(43586,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24245', 30000, 1)
end

function Sorts_24245(pUnit, Event)
local choix_sorts_24245 = math.random(0, 0)
if choix_sorts_24245 == 0 then
pUnit:RegisterEvent('spell0_24245', 1, 1)
end
end

function mob24245_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24245', math.random(1500, 3000), 1)
end

function mob24245_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24245_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24245_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24245, 1, 'mob24245_Action')
RegisterUnitEvent(24245, 2, 'mob24245_Leave')
RegisterUnitEvent(24245, 3, 'mob24245_Kill')
RegisterUnitEvent(24245, 4, 'mob24245_Die')
